# -*- coding: utf-8 -*-
# @Time    : 2021/11/6 11:29
# @Author  : ydh
# @File    : AuthorInfo.py
# @Software: PyCharm
from django.db import models


class AuthorInfo(models.Model):
    author_name = models.CharField(max_length=255, verbose_name="作者", null=True, blank=True)
    author_nationality = models.CharField(max_length=255, verbose_name="国籍", null=True, blank=True)
    author_desc = models.TextField(verbose_name="作者描述", null=True, blank=True)

    class Meta:
        db_table = "TAB_AUTH"
        verbose_name = "作者信息表"

    def __str__(self):
        return f"{self.author_name}"
